snippet rlf "按行读取文件"
	def readline(f):
		with open(f) as fp:
			for l in fp:
				j = l.strip()
				if j:
					yield j
	${1}

snippet main "包含main函数和脚本入口"
	def main():
		${1:pass}

	if __name__ == '__main__':
		main()

snippet argmain "生成包含main以及参数解析的函数"
	from argparse import ArgumentParser


	def parse_args():
		def add_bool_args(p, name, help):
			p.add_argument('--' + name, dest=name, help=help, action='store_true')
			p.set_defaults(**{name: False})

		parser = ArgumentParser(description='${1:该脚本的功能说明}')
		parser.add_argument('-f', '--file', help='输入文件路径', required=True)

		return parser.parse_args()

	def main():
		args = parse_args()


	if __name__ == '__main__':
		main()
